<template>
	<view class="content unify-padding">
		<view class="affirm-order-rests-item unify-flex" v-for="(item,index) in (affirmOrderMenu && affirmOrderMenu.from2)" :key="index" @tap="tapSkip(item)">
			<view class="affirm-order-rests-item-name unify-weight">{{item.name}}</view>
			<view class="affirm-order-rests-item-right unify-flex">
				<view class="unify-font-size-line-astrict" :class="[item.id !== 1? 'value-dif': 'tf-df']" :style="{'color': item.value? '#333333': ''}">{{item.value? item.value: item.desc}}</view>
				<view class="iconfont el-icon-icon12 unify-rotate90"></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			affirmOrderMenu: {
				type: Object,
				default: undefined
			}
		},
		methods: {
			// 切换跳转
			tapSkip(e) {
				if(e.url) {
					this.$openPage({
						name: e.url,
						query: {
							data: e.value
						}
					})
				} else {
					this.$emit('click')
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 20rpx 30rpx;
	}
	
	.affirm-order-rests-item {
		height: 66rpx;
		align-items: center;
		justify-content: space-between;
	}
	
	.affirm-order-rests-item-name {
		
	}
	
	.affirm-order-rests-item-right {
		max-width: 60%;
	}
	
	.value-dif {
		color: $uni-text-color-grey;
	}
	
	.el-icon-icon12 {
		font-size: $uni-font-size-sm;
	}
</style>
